package com.t.controller;

//import com.t.service.testService;
import com.t.common.configValue;
import com.t.service.testService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2018/4/25.
 */
@Controller
public class aaaaaaa {
    @Autowired
    private testService testservice;
    @Autowired
    private configValue configvalue;
    @RequestMapping(value={"/test1"}, method = RequestMethod.GET)
    public String password(HttpServletRequest request, Model model){
        try {
            String testv1=configvalue.getAuthorName();
            String testv2=configvalue.getProjectInfo();
            //int a=testservice.testInt();
            //111int a=testservice.testSelect();
            return "/test1";
        }
        catch (Exception e)
        {
            return "/test1";
        }
    }
}
